<?php
/**
 * Created by PhpStorm.
 * User: yuanjie
 * Date: 15/12/3
 * Time: 下午3:24
 */
class MaintenanceStationCarStatus extends Eloquent
{
    protected $table = "maintenance_station_car_status";

    /**
     * @Author:      zwh
     * @DateTime:  2017-3-14 14:36:24
     * @Description: 订单详情中修改订单车辆信息同步更新到看板信息
     */
    public static function update_station_info($order_id,$car_model_id,$vin_code,$mileage,$insurance,$start_off_time){
        MaintenanceStationCarStatus::where('order_id',$order_id)->update(array('car_model_id'=>$car_model_id,'vin_code'=>$vin_code,'mileage'=>$mileage,'insurance'=>$insurance,'start_off_time'=>$start_off_time));
    }
}